package com.dangf.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * 文章 类型实体
 * @author Hello_海生
 * @date 2015年2月2日
 */
@Entity
public class ArticleType implements Serializable{
	private long id;
	private String name;
	private ArticleType type;
	
	

	public ArticleType() {
		super();
	}

	public ArticleType(long id) {
		super();
		this.id = id;
	}
	
	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	@ManyToOne
	@JoinColumn(name="type_id")
	public ArticleType getType() {
		return type;
	}

	public void setType(ArticleType type) {
		this.type = type;
	}
	

}
